<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@ page import="com.witframework.meta.*"%>
<%@ page import="com.witutil.generator.view.*"%>
<%@ page import="com.witutil.generator.dao.*"%>
<%@ page import="com.witutil.generator.service.*"%>
<%@ page import="com.witutil.generator.entity.*"%>
<%@page import="com.witframework.meta.MetaEntity;"%>

<%
		MetaEntity m=new MetaEntity("com.witbyte.application.demo.UserTest3");
		MetaEntityField f1=new MetaEntityField("name",FieldJavaTypes.STRING,"姓名");
		MetaEntityField f2=new MetaEntityField("birthday",FieldJavaTypes.DATE,"生日");
		MetaEntityField f3=new MetaEntityField("mail",FieldJavaTypes.STRING,"邮件");		
		MetaEntityField f4=new MetaEntityField("XXX",FieldJavaTypes.STRING,"XXX");
		f4.setLength(30);
		m.addField(f1);
		m.addField(f2);
		m.addField(f3);
		m.addField(f4);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<title></title>
  	<%@ include file="/WEB-INF/classes/com/witframework/webroot/framework/common/meta.jsp"%>
  </head>

  <body>
    <%
		out.println("生成的JSP文件:<BR>");
		out.print(new EntityClassCreator(m).generate());
		out.print("<BR>"+IndexPageGenerator.generate(m));
		out.print("<BR>"+EditPageGenerator.generate(m));
		out.print("<HR>生成的JAVA文件：<BR>"+new DaoClassCreator(m).generate());
		out.print("<BR>"+new HibernateClassCreator(m).generate());
		out.print("<BR>"+new ServiceClassCreator(m).generate());
		out.print("<BR>"+new ServiceImplClassCreator(m).generate());

	%>
  </body>
</html>
